import vue from "vue";
import VueRouter from "vue-router";
vue.use(VueRouter);
const routes = [
  { path: "/", component: () => import("@/views/Login") },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login"),
  },
  {
    path: "/layout",
    name: "Layout",
    component: () => import("@/views/LayOut"),
  },

  { path: "*", component: () => import("@/views/Login") },
];
// 实例化路由
export default new VueRouter({
  routes,
});
